﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PhilipSupport
{
    public partial class CoverForm : Form
    {
        private string userId;
        private long serviceId;
        private string name;
        private string information;
        private long customerId;
        private string deviceId;

        public CoverForm(long customerId, string userId, string name, string information, long serviceId, string deviceId)
        {
            InitializeComponent();
            this.userId = userId;
            this.name = name;
            this.information = information;
            this.serviceId = serviceId;
            this.customerId = customerId;
            this.deviceId = deviceId;
        }

        private void CoverForm_Load(object sender, EventArgs e)
        {
            var form = new CallComeForm(customerId, userId, name, information, serviceId, deviceId);
            form.FormClosed += Form_FormClosed;
            form.TopMost = true;
            form.Show();
        }

        private void Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.Close();
        }
    }
}
